package com.ruoyi.bbsAdmin.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 论坛用户登陆记录对象 bbs_login_record
 * 
 * @author ruoyi
 * @date 2024-04-23
 */
@TableName(value = "bbs_login_record")
public class LoginRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 用户id */
    @Excel(name = "用户id")
    private String userId;

    /** 学校id */
    @Excel(name = "学校id")
    private Integer schoolId;

    /** 登录路径 */
    @Excel(name = "登录路径")
    private String loginPath;

    /** 登录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "登录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date loginTime;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setSchoolId(Integer schoolId) 
    {
        this.schoolId = schoolId;
    }

    public Integer getSchoolId() 
    {
        return schoolId;
    }
    public void setLoginPath(String loginPath) 
    {
        this.loginPath = loginPath;
    }

    public String getLoginPath() 
    {
        return loginPath;
    }
    public void setLoginTime(Date loginTime) 
    {
        this.loginTime = loginTime;
    }

    public Date getLoginTime() 
    {
        return loginTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("schoolId", getSchoolId())
            .append("loginPath", getLoginPath())
            .append("loginTime", getLoginTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
